package me.jiatao.dagger2.component;

import dagger.Subcomponent;
import me.jiatao.dagger2.SubActivity;
import me.jiatao.dagger2.module.MainActivitySubModule;

/**
 * Created by JiaTao on 2018/8/28.
 * Email: 535318720@qq.com
 * Version: 1.0
 * Description:
 */
@Subcomponent(modules = MainActivitySubModule.class)
public interface SubComponent {
    void inject(SubActivity activity);

    @Subcomponent.Builder
    interface Builder {
        // SubComponent 必须显式地声明 Subcomponent.Builder，
        // parent Component 需要用 Builder 来创建 SubComponent
        SubComponent build();
    }

}
